<template>
  <div>
    <h1>注册页</h1>
    <input type="text" placeholder="username" v-model="username">
    <br>
    <input type="text" placeholder="pwd" v-model="pwd">
  </div>
</template>

<script>
export default {
  data() {
    return {
      username: '',
      pwd: ''
    }
  },
  created() {
    console.log('reg-created');
  },
  beforeDestroy() {
    console.log('reg-我木有了...');
  },
  activated() {
    console.log('reg-我出现了');
  },
  deactivated() {
    console.log('reg-我隐藏了');
  }
}
</script>

<style>

</style>